<?php
$form = $this->beginWidget('CActiveForm', array(
    'htmlOptions' => array(
	'class' => 'form-horizontal',
	'enctype' => "multipart/form-data"
	)));
?>
<?php if ($form->errorSummary($model)) { ?>
    <div class='alert alert-danger'>
	<?php echo $form->errorSummary($modelPost); ?>
    </div>
<?php } ?>
<div class="control-group ">
    <label class="control-label" for="User_username">Text:</label>
    <div class="controls">
	<?php echo $form->textArea($model, 'text') ?>
    </div>
</div>

<div class="control-group">
    <div class="controls">
	<?php
	$this->widget('bootstrap.widgets.TbButton', array(
	    'buttonType' => 'submit',
	    'type' => 'primary',
	    'label' => $model->isNewRecord ? 'Create' : 'Save',
	));
	?>
    </div>
</div>

<?php $this->endWidget(); ?>